package me.pinion.kit;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * User: shao
 * Date: 13-11-30
 * Time: 下午1:40
 * To change this template use File | Settings | File Templates.
 */
public class MimeKit {
    public static String getType(File file){
        String filename = file.getName();
        return PropKit.get("attach", filename.substring(filename.lastIndexOf('.')+1));
    }
}
